package com.jt.demo11.controller;

import com.jt.demo11.pojo.Animal;
import com.jt.demo11.service.AnimalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class AnimalController {
    @Autowired
    private AnimalService animalService;

    public void hi(){
        Animal animal = new Animal();
        animal.setName("老虎");
        animal.setAge(101);
        animalService.hello(animal);
    }

}
